************ Appendix A: Variables

****** Table_A_1: Country-Level
use data/Demo_book_country_3.dta, clear

************ democracy variables

* polyarchy, 100-point scale
gen v2x_polyarchy_100 = (v2x_polyarchy / .924) * 100

* polyarchy, missing obs imputed
impute v2x_polyarchy lexical_index inc_chall_combined , gen(v2x_polyarchy_imp)
* 100-point scale
replace v2x_polyarchy_imp = v2x_polyarchy_imp * 100
gen v2x_polyarchy_imp_100 = (v2x_polyarchy_imp / 92.4) * 100
replace v2x_polyarchy_imp_100 = . if sovereign_Cojocaru ==.


*** democracy
summ v2x_polyarchy_100 v2x_polyarchy_imp_100 lexical_index_100 e_polity2_100 inc_chall_combined election murdock_dem v2msuffrage_JG 

*** ports, harbors
summ predallports53_100km predallports53_100km_ln distallports53_100km distnatports53_100km portdist_allports_100km portdist_natural_100km portdist_loyds_ipo_100km 

*** agricultural zones
summ crop pasture forest grass shrub savanna barren water mountains 

*** misc geography
summ london_dist_ln Island area_imp_ext_corrected_ln prec_gpcc rivdist_abs_new ocdistance_abs_new suit50_mfish irri_impact5 e_Total_Oil_Income_PC_ext lp_lat_abst landlock_new tropical avg_temp frstdays soil desert eleva rugged suita calories_mean calories_sd e_regionpol4 

*** state & society
summ sovereign_Cojocaru indep indep_yrs_since_ln statehiste1500_01n totton_milper v2x_corr wbgi_first Maddison_gdppc_1990_estimate_ln e_micowimp_ln nearest_univ_dist_ln_stock_1 lpd1500 agritran KII al_ethnic al_language al_religion Muslim 

*** Europe
summ europe_harbors_def eur_pct_est_smooth eur_pct_est_smooth_orig eur_pct_est_smooth_stock_1600_10 britain spain france el_excolony lp_catho80 chrstprotpct durbritain_new duration_global indirect_rule eur_lang_pct el_settlermort el_ME 


****** Table_A_2: Grid-cell Level
** main grid cell dataset: data/LandCover_GRID_CELL_v9_reduced
use data/LandCover_GRID_CELL_v9_reduced.dta, clear

*** democracy
summ v2x_polyarchy_imp_100 Demo_Murdock

*** ports, harbors
summ predallports53_100km portdist_natural_500km

*** agricultural zones
summ crop pasture forest grass shrub savanna barren water mountains

*** misc geography
summ prec_gpcc rivdist ocdistance irrig_sum equator_distance temp e_regionpol4 

*** state & society
summ Statehood pop_hyd_sum gcp_ppp urban area_bil
